package 贪吃蛇;

import javax.swing.*;

/**
 * @ClassName: StartGame
 * @Auther: Drawin
 * @Date: 2022/7/21 20:28
 * @Description:
 */
//主启动类
public class StartGame {
    public static void main(String[] args) {
        JFrame frame = new JFrame();

        frame.setBounds(10,10,900,720);
        frame.setResizable(false);//窗口大小不可变
        frame.setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);

        frame.add(new GamePanel());
        frame.setVisible(true);
    }
}
